#include"mystdio.h"
#include <string.h>
#include <unistd.h>

int main()
{
    myFILE* fp = myfopen("fortest.txt","w");
   
    int cnt = 5;
    const char* str = "This is my stdio.h";

    while(cnt)
    {
        myfwrite(str,sizeof(str[0]),strlen(str),fp);
        cnt--;
        sleep(1);
    }

    myfclose(fp);

    return 0;
}
